<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('toSqlDate')){
    function toSqlDate($date){        
    	$aux= explode("/",$date);
    	$date= $aux[2]."-".$aux[1]."-".$aux[0];    	
    	return $date;
    }   
}

if ( ! function_exists('toViewDate')){
	function toViewDate($date){		
    	return date("d/m/Y",strtotime($date)); 		
	}
}